:: It is recommended to test the script on a local machine for its purpose and effects. :: ManageEngine Desktop Central will not be responsible for any :: damage/loss to the data/setup based on the behavior of the script. :: Description: Script to prevent access to about:flags page in Edge Browser :: Script Arguments: 1 - Enabled (employees can't access the about:flags page) :: 2 - Disabled (employees can access the about:flags page) :: 3 - Not Configured (employees can access the about:flags pager) :: Configuration Type - COMPUTER :: =========================================================================================================================== @echo off IF NOT "%1"=="" ( set param=%1 ) else ( Echo Script argument is empty. Please read the description of the script exit 1 ) if %param%==1 ( reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main" /v "PreventAccessToAboutFlagsInMicrosoftEdge" /t REG_SZ /d yes /f goto ext ) if %param%==2 ( reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main" /v "PreventAccessToAboutFlagsInMicrosoftEdge" /t REG_SZ /d no /f goto ext ) if %param%==3 ( reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main" /v "PreventAccessToAboutFlagsInMicrosoftEdge" /f goto ext ) echo Incorrect Argument. Please check description exit 1 :ext echo Configured Successfully exit 0